<form id="add-form" class="form-horizontal form-ajax add" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <div class="form-group">
        <label for="nickname" class="control-label col-xs-12 col-sm-2">姓名:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="nickname" name="row[nickname]" placeholder="姓名" value="" data-rule="required;nickname" />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">部门:</label>
        <div class="col-xs-12 col-sm-8">
            {if $ids}
                {:build_select('group[]', $groupdata, $groupids, ['class'=>'form-control selectpicker', 'multiple'=>'','disabled'=>'true','data-rule'=>'required'])}
            <input type="hidden" class="form-control"  name="row[s_id]" value="{$ids}" />
            <input type="hidden" class="form-control"  name="row[type]" value="{$type}" />
            {else/}
                {:build_select('group[]', $groupdata, null, ['class'=>'form-control selectpicker', 'multiple'=>'', 'data-rule'=>'required'])}
            {/if}
        </div>
    </div>
    <div class="form-group">
        <label for="username" class="control-label col-xs-12 col-sm-2">手机号码:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="number" class="form-control" id="username" placeholder="手机号码" name="row[username]" value="{if $ids}{$s_name}{/if}" data-rule="required;username" />
        </div>
    </div>
    <!--<div class="form-group">-->
        <!--<label for="duty" class="control-label col-xs-12 col-sm-2">职务:</label>-->
        <!--<div class="col-xs-12 col-sm-8">-->
            <!--<input type="text" class="form-control" id="duty" placeholder="职务" name="row[duty]" value="{if $ids}{$duty}{/if}" data-rule="required;username" />-->
        <!--</div>-->
    <!--</div>-->


    <!--<div class="form-group">-->
        <!--<label for="level" class="control-label col-xs-12 col-sm-2">账号权限:</label>-->
        <!--<div class="col-xs-12 col-sm-8">-->
            <!--{:build_radios('row[level]', ['1'=>__('全国负责人'), '2'=>__('省负责人'), '3'=>__('市负责人')])}-->
        <!--</div>-->
    <!--</div>-->

    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>